package state.general;

/**
 * @Author：LJ
 * @Description：抽象状态角色,定义对象的状态,并且封装环境角色以实现状态切换
 * @Date: 2017/12/3
 * @Modified By:
 */
public abstract class State {
    protected Context context;

    public void setContext(Context context) {
        this.context = context;
    }

    //行为1
    abstract void method1();

    //行为2
    abstract void method2();
}
